<?php
 
$user1=array('u01','lcy','male','16');


$user1[]='student';
$user1[10]='show';
array_push($user1, 'c01');

$hobby=array('clibm','swim'); 
$user1[]=$hobby;
$user1['password']='123';

//print_r($user1);

//var_dump($user1);
foreach ($user1 as $key => $value) {
    if(is_array($value))
    {
     foreach ($value as $i => $v) {
     	echo $v.",";
     }

    }
    else

	{echo '<p>'.$value.'<p>';
}
}
















 ?>